//
//  DoorPushApi.m
//  RONGAO
//
//  Created by yc on 2018/4/11.
//  Copyright © 2018年 wei wang. All rights reserved.
//

#import "DoorPushApi.h"

@implementation DoorPushApi
{
    NSDictionary *_dic;
}

-(id)initWithDic:(NSDictionary *)dic{
    if (self = [super init]) {
        _dic = dic;
    }
    return self;
}

- (NSString *)requestUrl {
    return @"ronggao/Door_lock_device/set_push";
}

- (YTKRequestMethod)requestMethod {
    return YTKRequestMethodPOST;
}

- (id)requestArgument {
    NSMutableDictionary *dic = [NSMutableDictionary getPubdic];
    if (_dic[@"is_push"]) {
        [dic setObject:_dic[@"is_push"] forKey:@"is_push"];
        
    }
    NSString *sign=[NSString getSign:dic];
    [dic setObject:sign forKey:@"sign"];
    return dic;
    
}

-(void)dealloc
{
    NSLog(@"DoorPushApi dealloc");
}
@end
